package com.wx.gof.principle.demeter;


import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName Boss
 * @Author wx
 * @Description 老板
 * @Date 2018-12-02-16:49
 */
public class Boss {
    
    /**
     * @methodName: commandCheckNumber
     * @author: wx
     * @description: 
     * @param teamLeader 查看课程数量
     * @date: 2018/12/2
     * @return: void
     */
    public void commandCheckNumber(TeamLeader teamLeader){
        List<Course> courseList = new ArrayList<Course>();
        for(int i = 0 ;i < 20;i++){
            courseList.add(new Course());
        }
        teamLeader.checkNumberOfCourses(courseList);
    }


    /**
     * @methodName: commandCheckNumberV2
     * @author: wx
     * @description:
     * @param teamLeader 查看课程数量V2
     * @date: 2018/12/2
     * @return: void
     */
    public void commandCheckNumberV2(TeamLeader teamLeader){
        teamLeader.checkNumberOfCoursesV2();
    }
}
